<template>
  <div class="itemList">
    <h3>{{ itemList.title }}</h3>
    <div class="itemName" v-for="(item, index) in itemList.name" :key="index">
      <span>{{ item }}</span>
      <img src="@/assets/img/mine/go.svg" alt="" />
    </div>
  </div>
</template>
<script>
export default {
  name: "itemList",
  props: {
    itemList: {
      type: Object,
      default() {
        return [];
      },
    },
  },
};
</script>

<style>
.itemList{
  background-color: white;
  overflow: hidden;
  padding: 0 0 0 10px;
}
.itemList h3{
  padding: 15px 0;
  font-size: 24px;
}
.itemName {
  display: flex;
  line-height: 32px;
  font-size: 20px;
  padding: 5px 10px;
  border-top: 1px solid #ff5777;
}
.itemName:hover{
  background-color: #FFB6C1;
}
.itemName span {
  flex: 1;
}
.itemName img {
  height: 32px;
  vertical-align: middle;
}
</style>